package org.zoomdev.zoom.web.parameter.parser.impl;

import org.zoomdev.zoom.web.action.ActionContext;
import org.zoomdev.zoom.web.parameter.ParameterAdapter;
import org.zoomdev.zoom.web.parameter.PreParameter;

import java.lang.reflect.Type;

public final class DirectParameterAdapter implements ParameterAdapter {
    @Override
    public Object get(ActionContext context, String name, Type type) {
        PreParameter map = context.getPreParameter();
        return map.get(name);
    }
}
